package com.probox.common.entity.domain.platfom;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.probox.common.core.utils.money.MoneyUtils;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.*;
import com.probox.common.core.annotation.Excel;

/**
 * 平台邮费模板对象 platform_freight_moudle
 *
 * @author usoft
 * @date 2021-06-28
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("platform_freight_moudle")
public class PlatformFreightMoudle implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 邮费模板UID
     */
    //默认主键自增
    @TableId(value = "MOUDLE_UID", type = IdType.AUTO)
    private Long moudleUid;
    /**
     * 邮费模板名称
     */
    @Excel(name = "邮费模板名称")
    private String moudleName;
    /**
     * 包邮条件金额
     */
    @Excel(name = "包邮条件金额")
    private BigDecimal moudleAmount;
    /**
     * 不满足条件金额
     */
    @Excel(name = "不满足条件金额")
    private BigDecimal freightInitFate;

    public String getMoudleAmountFateStr(){
         return MoneyUtils.changeF2B(moudleAmount);
    }

    public String getFreightInitFateStr(){
        return MoneyUtils.changeF2B(freightInitFate);
    }

    /**
     * 店铺ID
     */
    @Excel(name = "店铺ID")
    private Long platformUid;
    /**
     * 状态 1有效 0无效 -1 删除
     */
    @Excel(name = "状态 1有效 0无效 -1 删除")
    private String dataStatus;
    /**
     * 创建人id
     */
    @Excel(name = "创建人id")
    private Long createUid;
    /**
     * 创建人
     */
    @Excel(name = "创建人")
    private String createName;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**
     * 修改人ID
     */
    @Excel(name = "修改人ID")
    private Long updateUid;
    /**
     * 修改人
     */
    @Excel(name = "修改人")
    private String updateName;
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    /**
     * 区域不配送的原因
     */
    @Excel(name = "区域不配送的原因")
    private String reason;



}
